﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.SpcManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.SpcManagement.SimpleDataVMs
{
    public partial class SimpleDataBatchVM : BaseBatchVM<SimpleData, SimpleData_BatchEdit>
    {
        public SimpleDataBatchVM()
        {
            ListVM = new SimpleDataListVM();
            LinkedVM = new SimpleData_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class SimpleData_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._SimpleData._Sheet")]
        public long? SheetId { get; set; }
        [Display(Name = "_Model._SimpleData._BatchId")]
        public string BatchId { get; set; }
        [Display(Name = "_Model._SimpleData._ProductId")]
        public long? ProductId { get; set; }
        [Display(Name = "_Model._SimpleData._OpId")]
        public long? OpId { get; set; }
        [Display(Name = "_Model._SimpleData._Sn")]
        public string Sn { get; set; }
        [Display(Name = "_Model._SimpleData._SimpleValue")]
        public decimal? SimpleValue { get; set; }
        [Display(Name = "_Model._SimpleData._SimpleTime")]
        public DateTime? SimpleTime { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}